<template>
	<view class="my-container">
		<my-login v-if="!token" @click="trans"></my-login>
		
		<my-userinfo v-else  :userdata="user" @gotokf="gotokf" @gotodt="gotodt"></my-userinfo>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				token:false,
				user:{}
			};
		},
		methods:{
			trans(e){
				this.token=true
				this.user=e
			},
			gotokf(){
				uni.navigateTo({
					url:'/subpkg/kf_chat/kf_chat'
				})
			},
			gotodt(){
				uni.navigateTo({
					url:'/subpkg/answer/answer'
				})
			},

		}
		
	}
</script>

<style lang="scss">
page,.my-container{
	height: 100%;
}
</style>
